package com.epoch.servicetest.service;

import bean.response.ResponseBean;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;

/**
 *
 * @author Seven
 * @date 2021/12/1
 */
@Service
public interface TestService {

    /**
     * 无参获取试题 页面初始化
     * @return
     */
    ResponseBean getTests();

    /**
     * 通过试题类型获取试题内容
     * @param typeContent
     * @return
     */
    ResponseBean getTestsByTypeContent(String typeContent);

    /**
     * 根据主键id获取试题
     * @param id
     * @return
     */
    ResponseBean getTestByPrimaryId(Integer id);

    /**
     * 根据试卷id获取试卷
     * @param id
     * @return
     */
    ResponseBean getExamTestById(Integer id);

    /**
     * 添加错题
     * @param map
     * @param request
     * @return
     */
    ResponseBean addStuWrong(HashMap<String,Object> map, HttpServletRequest request);

    /**
     * 获取错题 by csId
     * @param id
     * @return
     */
    ResponseBean getStuWrongByCsId(Integer id);



}
